cmake_minimum_required(VERSION 3.10.2)
project("ring_queue")

set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")

set(CMAKE_CXX_FLAGS "-g -std=c++11 -D_RING_QUEUE_SELF")# -DDEBUGLOG")
set(CMAKE_C_FLAGS "-g -D_RING_QUEUE_SELF")
if(WIN32)
set(CMAKE_MSC_VER_EXPORT_ALL_SYMBOLS ON)
elseif()

endif()

include_directories(include /usr/include )


set(RING_QUEUESRC
  src/ring_queue.c
  )

if(BUILD_STATIC)
  add_library(ring_queue STATIC ${RING_QUEUESRC})
else()
  add_library(ring_queue SHARED ${RING_QUEUESRC})
endif()
